package com.gitee.paymentzk.controlle;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @ClassName ZkController
 * @Description TODO
 * @Author xiongchao
 * @Date 2020/12/11 15:40
 **/
@RestController
@Slf4j
public class ZkController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/payment/zk")
    public String paymentZk () {
        return "SpringCloud width zookeeper :" +port +"\t" + UUID.randomUUID().toString();
    }
}
